< Prev(J) / Next(K) > / View :

Filename: /text/sbasic/shared/03102400.xhp

(section: isempty) (bookmark: bm_id3153394)
IsEmpty function

IsEmpty 関数

IsEmpty Function [Runtime]
IsEmpty 関数 [実行時](hd_id3153394.1)

Tests if a Variant variable contains the Empty value. The Empty value indicates that the variable is not initialized.
バリアント型変数の値が、空 (Empty) であるかを判定します。値が空 (Empty) である変数は、初期化前であることを意味します。(par_id3163045.2)

(/section: isempty)

Syntax:
構文:(hd_id3159158.3)

IsEmpty (Var)
IsEmpty (Var)(par_id3153126.4)

Return value:
戻り値:(hd_id3148685.5)

Bool
ブール型(par_id3156344.6)

Parameters:
パラメータ:(hd_id3148947.7)

Var: Any variable that you want to test. If the Variant contains the Empty value, the function returns True, otherwise the function returns False.
Var: 判定する変数。関数の戻り値は、バリアント型変数の値が空 (Empty) であれば True を返し、そうでない場合は False を返します。(par_id3154347.8)

(embed text/sbasic/shared/00000003.xhp#errorcode : linkinfo)

Error Codes

エラーコード(hd_id3152869.37)

(/embed text/sbasic/shared/00000003.xhp#errorcode)

(embed text/sbasic/shared/00000003.xhp#err5 : linkinfo)

5 Invalid procedure call
5 無効なプロシージャー呼び出しです (par_id3150891.41)

(/embed text/sbasic/shared/00000003.xhp#err5)

Example:
例:(hd_id3154138.9)

Sub ExampleIsEmpty
Sub ExampleIsEmpty(par_id3125864.10)

Dim sVar as Variant
Dim sVar as Variant(par_id3150449.11)

sVar = Empty
sVar = Empty(par_id3153970.12)

Print IsEmpty(sVar) REM Returns True
Print IsEmpty(sVar) REM この場合は True が返されます(par_id3154863.13)

end sub
end sub(par_id3151043.14)


< Prev / Next >